using System.Data;
using Lizk.SimpleHUD;
using MediaData;

namespace SharpMedia.Pages
{
    public abstract class MediaPage : HUDPage
    {
        protected HUDPage parent;


        public MediaPage(HUDPage parent)
        {
            this.parent = parent;
            this.Bounds = new RectangleS(PointS.Empty, new SizeS(SharpMedia.Engine.CurrentSize.Width, SharpMedia.Engine.CurrentSize.Height));
            this.Anchor = Anchor.All;
            SharpMedia.MediaChanged += MediaChanged;
        }

        protected virtual void MediaChanged(MediaDataSet obj)
        {
            
        }


        public override void Close()
        {
            SharpMedia.MediaChanged -= MediaChanged;
            base.Close();
        }

    }
}
